package com.jay.media.music.core.player

import com.google.android.exoplayer2.audio.AudioAttributes

/**
 * @author xuzhou4
 * @date 2021/12/3
 */
interface IAudioListener {

    /**
     * Called when the audio session is set.
     *
     * @param audioSessionId The audio session id.
     */
    fun onAudioSessionId(audioSessionId: Int) {}

    /**
     * Called when the audio attributes change.
     *
     * @param audioAttributes The audio attributes.
     */
    fun onAudioAttributesChanged(audioAttributes: AudioAttributes?) {}

    /**
     * Called when the volume changes.
     *
     * @param volume The new volume, with 0 being silence and 1 being unity gain.
     */
    fun onVolumeChanged(volume: Float) {}
}